﻿<%@ Page Title="Lịch sử giao dịch" Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true" CodeBehind="HistoryOfTransaction.aspx.cs" Inherits="EC_Agent.HistoryOfTransaction" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Maincontent" runat="server">
<div id="Travel" runat="server">
    <h3>ĐẶT TOUR DU LỊCH </h3>
    <asp:GridView ID="gvTravel" runat="server" AutoGenerateColumns="False" CssClass="grid"
            AlternatingRowStyle-CssClass="gridAltRow" RowStyle-CssClass="gridRow" DataKeyNames="MaGiaoDich"
            AllowPaging="true" PageSize="15">
        <Columns>
                <asp:TemplateField HeaderText="Nhà cung cấp" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TenNCC")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Địa chỉ" HeaderStyle-HorizontalAlign="Left"
                    ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("DiaChi")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày thực hiện" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("NgayLap")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tổng tiền" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TongTien")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tình trạng">
                    <ItemTemplate>
                        <asp:Label ID="lblTinhTrang" runat="server" Text='<%# (Boolean.Parse(Eval("TinhTrang").ToString())) ? "Đã thanh toán" : "Chưa thanh toán" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Chi tiết" ShowHeader="False" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkDetail" runat="server" CausesValidation="False" CommandName="Detail"
                            Text="Chi tiết"></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
    </asp:GridView>
</div>
<div id="Hotel" runat="server">
    <h3>ĐẶT PHÒNG KHÁCH SẠN</h3>
    <asp:GridView ID="gvHotel" runat="server" AutoGenerateColumns="False" CssClass="grid"
            AlternatingRowStyle-CssClass="gridAltRow" RowStyle-CssClass="gridRow" DataKeyNames="MaGiaoDich"
            AllowPaging="true" PageSize="15" >
        <Columns>
                <asp:TemplateField HeaderText="Nhà cung cấp" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TenNCC")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Địa chỉ" HeaderStyle-HorizontalAlign="Left"
                    ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("DiaChi")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày thực hiện" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("NgayLap")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tổng tiền" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TongTien")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tình trạng">
                    <ItemTemplate>
                        <asp:Label ID="lblTinhTrang" runat="server" Text='<%# (Boolean.Parse(Eval("TinhTrang").ToString())) ? "Đã thanh toán" : "Chưa thanh toán" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Chi tiết" ShowHeader="False" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkDetail" runat="server" CausesValidation="False" CommandName="Detail"
                            Text="Chi tiết"></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
    </asp:GridView>
</div>
<div id="Transport" runat="server">
    <h3>THUÊ XE</h3>
    <asp:GridView ID="gvTransport" runat="server" AutoGenerateColumns="False" CssClass="grid"
            AlternatingRowStyle-CssClass="gridAltRow" RowStyle-CssClass="gridRow" DataKeyNames="MaGiaoDich"
            AllowPaging="true" PageSize="15">
        <Columns>
                <asp:TemplateField HeaderText="Nhà cung cấp" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TenNCC")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Địa chỉ" HeaderStyle-HorizontalAlign="Left"
                    ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("DiaChi")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày thực hiện" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("NgayLap")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tổng tiền" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TongTien")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tình trạng">
                    <ItemTemplate>
                        <asp:Label ID="lblTinhTrang" runat="server" Text='<%# (Boolean.Parse(Eval("TinhTrang").ToString())) ? "Đã thanh toán" : "Chưa thanh toán" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Chi tiết" ShowHeader="False" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkDetail" runat="server" CausesValidation="False" CommandName="Detail"
                            Text="Chi tiết"></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
    </asp:GridView>
</div>
<div id="Airplane" runat="server">
    <h3>ĐẶT VÉ MÁY BAY</h3>
    <asp:GridView ID="gvAirplane" runat="server" AutoGenerateColumns="False" CssClass="grid"
            AlternatingRowStyle-CssClass="gridAltRow" RowStyle-CssClass="gridRow" DataKeyNames="MaGiaoDich"
            AllowPaging="true" PageSize="15">
        <Columns>
                <asp:TemplateField HeaderText="Nhà cung cấp" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TenNCC")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Địa chỉ" HeaderStyle-HorizontalAlign="Left"
                    ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("DiaChi")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày thực hiện" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("NgayLap")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tổng tiền" HeaderStyle-HorizontalAlign="Left" ControlStyle-Width="90px">
                    <ItemTemplate>
                        <%# Eval("TongTien")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tình trạng">
                    <ItemTemplate>
                        <asp:Label ID="lblTinhTrang" runat="server" Text='<%# (Boolean.Parse(Eval("TinhTrang").ToString())) ? "Đã thanh toán" : "Chưa thanh toán" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Chi tiết" ShowHeader="False" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkDetail" runat="server" CausesValidation="False" CommandName="Detail"
                            Text="Chi tiết"></asp:LinkButton>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
    </asp:GridView>
</div>
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="sidecontent" runat="server">
<p class="title_general">
        <b>Menu khách hàng</b></p>
        <p><b>
            <asp:Label ID="LabWelcome" runat="server" Text="Xin chào " Visible="False"></asp:Label>
        <asp:Label
                ID="LabUser" runat="server" ForeColor="#33CCCC" Visible="False"></asp:Label></b></p>
    <ul>
        <li id = "DangNhap" runat="server" class="city_item"><a href="LoginKhachHang.aspx">Đăng nhập</a></li>
        <li id = "DangKy" runat="server" class="city_item"><a href="Register.aspx">Đăng ký</a></li>
        <li id = "UpdateInfo" runat="server" class="city_item"><a href="UpdatePersonalInfo.aspx">Cập nhật thông tin cá nhân</a></li>
        <li id = "LichSuGD" runat="server" class="city_item"><a href="HistoryOfTransaction.aspx">Lịch sử giao dịch</a></li>
        <li id = "Logout" runat="server" class="city_item"><a href="LogoutKhachHang.aspx">Đăng xuất</a></li>
    </ul>
</asp:Content>
